import type { KpcodeJackpotEntity } from '@/types/global'
import { http } from '@/utils/http'

/**
 * 公共参数
 * @param data 请求参数
 */
export const getPublickDataApi = (type: string) => {
  return http<string>({
    method: 'GET',
    url: `/admin/param/publicValue/${type}`,
  })
}

// 公共首页数据
export const homePublickAPI = () => {
  return http<KpcodeJackpotEntity>({
    method: 'GET',
    url: '/admin/home/publicHome',
  })
}

// 商家注册验证码
export const getCodeRegistAPI = (mobile: string) => {
  return http({
    method: 'GET',
    url: `/admin/appmobile/sendSmsBus/${mobile}`,
  })
}

// 用户实名注册验证码
export const getCodeRealNameAPI = (mobile: string) => {
  return http({
    method: 'GET',
    url: `/admin/appmobile/sendSmsRealName/${mobile}`,
  })
}
